import React from 'react';
import ReactDOM from 'react-dom/client';
import App from './App-函数式组件';
//////////////////////////////////////////////
let a: string = '10'
console.log(a);

interface Iobj {
  name: string,
  [a: string]: any  
}
const obj: Iobj = {
  name: 'zs'
}
console.log(obj);

function f1(a1: number, b1: number) {
  return  a1 + b1
}
f1(1, 1)
/////////////////////////////////////////////
const root = ReactDOM.createRoot(
  document.getElementById('root') as HTMLElement
);
root.render(
  <React.StrictMode>
    <App />
  </React.StrictMode>
);
